




/*
*************************************************************************
*西瑞克斯研发管理系统
*版 本: 1.0   
*日 期：02/16/2012    
*作 者： 王浩 QQ：873987060   
*************************************************************************   
*/ 
package com.application.yfapplycost.service;
import java.util.List;
import com.manager.BaseService;
import com.manager.commons.page.PageBean;
import com.application.yfapplycost.entity.YfApplyCost;
import com.application.yfapplycost.struts.form.YfApplyCostForm;
import com.application.yfapplycost.dao.YfApplyCostDAO;
 /**
 * 
 * Description:YfApplyCostService<br />
 * 
 * Version:V0.1<br />
 * 
 * Author: 王浩 QQ：873987060  <br />
 * 
 * History: <br />
 * 
 * 02/16/2012 
 * 
 */
public class YfApplyCostService extends BaseService
{
	private YfApplyCostDAO yfApplyCostDAO;

	public YfApplyCostDAO getYfApplyCostDAO() {
		return this.yfApplyCostDAO;
	}

	public void setYfApplyCostDAO(YfApplyCostDAO yfApplyCostDAO) {
		this.yfApplyCostDAO = yfApplyCostDAO;
	}
        

        public YfApplyCost getYfApplyCost(YfApplyCost yfApplyCost) {
		return (YfApplyCost) this.getBaseDao().queryByPk(yfApplyCost, yfApplyCost.getId());
	}
	
	public Integer getAllCountYfApplyCost(YfApplyCostForm yfApplyCostForm){
		return this.yfApplyCostDAO.getAllCountYfApplyCost(yfApplyCostForm);
	}
	
	public List<YfApplyCost> searchYfApplyCost(YfApplyCostForm yfApplyCostForm, PageBean pageBean) throws Exception {
		List<YfApplyCost> yfApplyCostList = (List) this.yfApplyCostDAO.searchYfApplyCost(yfApplyCostForm, pageBean);
		return yfApplyCostList;
	}
        
        public void deleteYfApplyCosts(YfApplyCostForm yfApplyCostForm){
	   this.yfApplyCostDAO.deleteYfApplyCosts(yfApplyCostForm);	 
	}
        
        public synchronized String getMaxNo(String pix ){
        	return yfApplyCostDAO.getMaxNo(pix);
        }
}
